package edu.gdit.health.controller;

import edu.gdit.health.base.result.Results;
import edu.gdit.health.service.Impl.SysUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user")
public class SysUserController {
    @Autowired
    SysUserServiceImpl sysUserServiceImpl;
    @RequestMapping(value = "/list")
    @ResponseBody
    public Results list(int page, int limit){
        int offset=(page-1)*limit;


        return sysUserServiceImpl.getUser(offset,limit);
    }
}